package com.ruoyi.voucher.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 凭证附件对象 financial_voucher_accessory
 *
 * @author ruoyi
 * @date 2025-02-23
 */
@TableName("financial_voucher_accessory")
public class VoucherAccessory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String accessoryUrl;

    /** 凭证id */
    @Excel(name = "凭证id")
    private Long voucherId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String name;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAccessoryUrl(String accessoryUrl)
    {
        this.accessoryUrl = accessoryUrl;
    }

    public String getAccessoryUrl()
    {
        return accessoryUrl;
    }
    public void setVoucherId(Long voucherId)
    {
        this.voucherId = voucherId;
    }

    public Long getVoucherId()
    {
        return voucherId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("accessoryUrl", getAccessoryUrl())
                .append("voucherId", getVoucherId())
                .append("name", getName())
                .toString();
    }
}
